package com.cyz.web.app.decorator;

public class Egg extends Decorator {


    public Egg(FastFood fastFood) {
        super("鸡蛋", 1, fastFood);
    }

    @Override
    public float cost() {
        return this.getFastFood().cost() + getPrice();
    }

    @Override
    public String getDesc() {
        return super.getDesc() + getFastFood().getDesc();
    }
}
